find x in a right triangle using trig